home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UNewsApplCmds.h < prev    next >
Encoding:
Text File  |  1994-03-13  |  1.0 KB  |  43 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UNewsApplCmds.h
  3.  
  4. #define __UNEWSAPPLCMDS__
  5.  
  6. class TProgress;
  7.  
  8. class TOpenPrefsCommand : public TCommand
  9. {
  10.     public:
  11.         pascal void DoIt();
  12.         
  13.         TOpenPrefsCommand();
  14.         pascal void Initialize();
  15.         void IOpenPrefsCommand(TList *docList = nil);
  16.         pascal void Free();
  17.     private:
  18.         TFile *fGroupTreeFile;
  19.         TList *fDocFileList;
  20.         Boolean fUpdateServerInfo;
  21.         long fOldPrefsVersion, fMinNeededVersion;
  22.  
  23.         TFile *GetSpecialFile(OSType fileType);
  24.         void OpenPrefsFile();
  25.         void OpenGroupTreeFile();
  26.         void UpgradePrefs();
  27.         void ReadExistingPrefs();
  28.         void UseNewServer(CStr255 &name);
  29.         void AskNewsServer();
  30.         void CheckNewsServerIP();
  31.         void BuildListOfAllGroups();
  32.         void CheckPreFinalVersion();
  33.  
  34.         void UpdateFolders();
  35.         void GetNuntiusTrashFolder(FSSpec &spec);
  36.         void MoveToTrash(const FSSpec &spec);
  37.         void MovePrefFileToTrash(const CStr255 &name);
  38.         void MoveFileToPrivate(const CStr255 &name);
  39.         void MoveGroupLists();
  40. };
  41.  
  42. void CloseDownTheManagers();
  43.